const Monitor = require('../../utils/monitor.js').Monitor
const util = require('../../utils/util.js')
Page(Monitor.hookApp({
  data: {
    imgUrls: getApp().globalData.imgUrls,
    list:[],
    
  },
  getData() {
    util.API('spwx/v1.Shop/subordinateList',{
      pageshow:10000
    }).then(res => {
      let {
        code,
        data,
        msg
      } = res
      if (code == 200) {
        this.setData({
          list: data.list,
          count: data.count,
          number: data.number
        })
      } else {
        wx.showToast({
          title: msg,
          icon: 'none'
        })
      }
    })
  },
  onShow() {
    this.getData()
  },
  onLoad: function(options) {

  }
}))